Skip to content

Stop using [ and ] as indentation menu accelerators #3229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 29, 2015
Merged

Stop using [ and ] as indentation menu accelerators #3229

merged 1 commit into from
May 29, 2015

Conversation

ffissore
Copy link
Contributor

Use TAB/SHIFT+TAB instead. Fixes #3224 and #220
This problem affects Processing as well. See processing/processing#2199
Brackets may work on US keyboards, although no editor that I know uses them. TAB is a much more popular and widely accepted shortcut for indentation

@ffissore ffissore added the Component: IDE user interface The Arduino IDE's user interface label May 25, 2015
@ffissore ffissore self-assigned this May 25, 2015
@ffissore ffissore added this to the Release 1.6.5 milestone May 25, 2015
@damellis
Copy link
Contributor

Xcode uses Cmd+[ and Cmd+] for indent and unindent. I'm a fan of them too. Any reason not to support both them and tab / shift-tab?

@ffissore
Copy link
Contributor Author

We can support both but we can only write one on the edit menu

@ffissore
Copy link
Contributor Author

What about this? CMD+brakets are still available so, if you come from XCode, they'll just work. However TAB|SHIFT TAB are advertized on the Edit menu

…B instead. CMD+BRAKETS are still available on MacOSX only

Fixes #3224 and #220
Also see processing/processing#2199
ffissore added a commit that referenced this pull request May 29, 2015
Stop using [ and ] as indentation menu accelerators
@ffissore ffissore merged commit 7d6518f into arduino:master May 29, 2015
@ffissore ffissore deleted the indent-with-tab-no-brackets branch May 29, 2015 09:35
@Jed-SWSDT
Copy link

At least with version 1.6.5, the functionality of [ and ] is still not correct. It used to move the entire line regardless of where the cursor was in it. Now that only works for decreasing. For increasing it adds a tab where the cursor is. I understand that this may not have been a standard feature across editors but some of us relied on it. It was an easy way to change the line indent without having to move the cursor to the beginning (requiring another key combo or mouse move). Is there any plan on returning the functionality to its original intent or are the [ and ] now just going to be a different way of hitting tab/shift-tab?

@ffissore
Copy link
Contributor Author

Yes, please open a dedicated issue where you mention that CMD+[ is not increasing indentation but rather inserting a tab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE user interface The Arduino IDE's user interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Decrease Indent" shortcut doesn't work in IDE 1.6.5
4 participants